<%@page import="com.sun.jmx.snmp.tasks.TaskServer"%>
<%@page import="com.kaishengit.pms.entity.Task"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style type="text/css">
		body{
			background-image:url(img/bb.jpg);
			background-repeat:repeat-x;
		}
	</style>
</head>
<body class="body">
	<%@ include file="include/main-top.jsp" %>
	<div class="container">
	  <div class="row">
		<jsp:include page="include/left.jsp">
			<jsp:param value="goal" name="tag"/>
		</jsp:include>
		<div class="span9">
			
			
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="javascript:;"><i class="icon-th"></i>${goal.name}</a>
				</li>
			</ul>
			<div class="well">
				<p>${goal.desc }</p>
				<div class="progress progress-danger">
					<div class="bar" style="width:${aa}%">当前完成度为${aa}%</div>
				</div>
				<div class="page-header">
					<a href="jump.jspx?m=addtask&goalid=${goal.id}" class="btn btn-success"><i class="icon-plus icon-white"></i>添加新任务</a>
				</div>
				<div>
					<!-- 在此迭代的是相应目标下所有任务的集合 -->
					<c:forEach var="tk" items="${taskList}">
						
	        			<div>
	        				<i class="icon-bookmark"></i><a style="display:inline" data-toggle="modal" href="#" >${tk.name}</a>
	        				<form action="updaterate.jspx?taskid=${tk.id }" style="display:inline;" method="post">
	        					<input type="text" class="span1" name="rate"/>
	        					<button type="submit" class="btn btn-info">修改进度</button>
	        				</form>
	        			</div>
	        			
	        			<p>${tk.desc }</p>
	        			<div class="progress">
						  <div class="bar" style="width:${tk.rate}%;">当前任务进度为${tk.rate}%</div>
						</div>
					</c:forEach>
      			</div>
			</div>
		</div>
	  </div>
	</div>
	
	
</body>

</html>